 $fontUrls = @(
    "https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2",
    "https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2",
    "https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2",
    "https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2",
    "https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2",
    "https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2",
    "https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2"
)

$fontNames = @(
    "Inter-300-cyrillic-ext.woff2",
    "Inter-300-cyrillic.woff2",
    "Inter-300-greek-ext.woff2",
    "Inter-300-greek.woff2",
    "Inter-300-vietnamese.woff2",
    "Inter-300-latin-ext.woff2",
    "Inter-300-latin.woff2"
)

$outputDir = "src/assets/fonts"

# 创建输出目录
New-Item -ItemType Directory -Force -Path $outputDir

# 下载字体文件
for ($i = 0; $i -lt $fontUrls.Count; $i++) {
    $url = $fontUrls[$i]
    $fileName = $fontNames[$i]
    $outputPath = Join-Path $outputDir $fileName
    
    Write-Host "Downloading $fileName..."
    Invoke-WebRequest -Uri $url -OutFile $outputPath
}

Write-Host "All font files downloaded successfully!"